export class Url {

    static base = "http://localhost:8080"

    static userAll = `${this.base}/api/user/all`;

    static deleteUser = `${this.base}/api/user/delete/`;

    static publishNews = `${this.base}/api/news`;

    static viewNews = `${this.base}/api/news/`;

    static newsAll = `${this.base}/api/news/all`;

    static deleteNews = `${this.base}/api/news/delete/`;

    static register = `${this.base}/api/user/register`;

    static getAsk = `${this.base}/api/ask/`;

    static publishAsk = `${this.base}/api/ask/`;

    static askAll = `${this.base}/api/ask/all`;

    static changeAskState = `${this.base}/api/ask/`; // /ask/{askId}/state/{state}

    static uploadImage = `${this.base}/api/img/upload`;

    static uploadFile = `${this.base}/api/file/upload`;

    static downloadFile = `${this.base}/api/file`;

    static viewImage = `${this.base}/api/img/`;

    static bid = `${this.base}/api/bid`;

    static comment = `${this.base}/api/comment`;

    static bidAll = `${this.base}/api/bid/all?userId=`;

    static deleteComment = `${this.base}/api/comment/delete/`

    static chooseBid = `${this.base}/api/ask/`;     // /ask/{askId}/choose/{bidId}

    static deleteBid = `${this.base}/api/bid/delete/`;

    static viewUser=`${this.base}/api/user/`

}